home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Webster's Millennium Amer…Sign Language Dictionary
/
ASL.ISO
/
mac
/
SHARED.cst
/
00048_Script_Pete's Code
< prev
next >
Wrap
Text File
|
2001-09-17
|
1KB
|
46 lines
--∂ CleanUpMIAWBeforeQuit
global gHDpath
on CleanUpMIABeforeQuit
if count(the windowlist) > 0 then
repeat with x = 1 to count(the windowlist)
close window x
forget window x
end repeat
end if
end
on CloseLogin --petemack 07.22.01
--alert string(the windowlist && "On CloseLogin")
repeat with x = 1 to count(the windowlist)
--alert string("repeat loop" && x && "= x")
set vWindowName = getAt(the windowlist, x)
--alert string(vWindowName)
if vWindowName = (window "login.dir") then
--alert string("gottcha"&&vWindowName)
forget window x
-- alert string("forgot window" && x && vWindowName)
Exit Repeat
end if
end repeat
--alert string(the windowlist && "end of CloseLogin")
end
on TurnOnTrace
if the platform contains "Macintosh" then EXIT
set the traceLogFile = gHDpath & "messagewindow.txt"
put the date && the time
set the trace = 1
end
on TurnOffTrace
if the platform contains "Macintosh" then EXIT
set the trace = 0
set the traceLogFile = gHDpath & "messagewindow.txt"
set the trace = 1
put the date && the time
set the trace = 0
set the traceLogFile = ""
end